//
//  UIUtils.h
//  p2p
//
//  Created by mokai on 14-8-13.
//  Copyright (c) 2014年 cloudyoo. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@interface UIUtils : NSObject

+(UIViewController *)currentViewController;
+(UIViewController *)currentViewWithClass:(Class)clazz;
//pop至指定的Viewcontroller
+(void)popToViewContorllerWithClass:(Class)clazz;

//向外pop二级
+(void)popToViewContorllerWithCount:(int)count;
+(void)pushViewController:(UIViewController *)ctr;
//自动切换焦点到当前textfield tag的下一个
+(void)nextBecomeFirstResponderWithCurrentTextField:(UITextField *)field;
+(void)nextBecomeFirstResponderWithCurrentTextField:(UITextField *)current nextTextField:(UITextField *)next;


@end
